Skip to main content

All Questions

Tagged with
1vote
1answer
24views

Can't get custom systemd service to automatically disconnect and log-off Nord VPN session upon Linux system shutdown

I'm writing a systemd service to automate the process of gracefully disconnecting and logging-out of Nord VPN upon system shutdown. This service should run, regardless of whomever is the user ...
user729048's user avatar
1vote
1answer
40views

Problems with systemd-logind & d-bus on a busy SFTP server

We recently upgraded a high volume CentOS 7 SFTP server running openssh/internal-sftp to Rocky Linux 8. However, since the upgrade we are experiencing login timeout issues after the server has been ...
drjeep's user avatar
0votes
2answers
56views

Can't get a systemd service to start in Fedora

I'm writing a systemd service that will literally do something "stupid," such as display an on-screen message at shutdown time, saying something such as "Thank you for using this ...
user729048's user avatar
0votes
0answers
19views

Properly start desktop session for certain user on certain tty from root access

I have root access on my PC (Linux, systemd, ssh). I want to properly perform login and desktop start (wayland, plasma) for a few users, each on a specific virtual display (so users can switch with ...
avi9526's user avatar
1vote
2answers
52views

systemd-random-seed.service takes a lot of time to start / timeout

I have a Linux device with several services of my own. Kernel: 4.14.151 systemd: systemd 249 (249.11-0ubuntu3.12) My services are written as sysvinit services and automatically generated as systemd ...
hudac's user avatar
0votes
1answer
54views

QXcbConnection: Could not connect to display within a service

I have a shell script that sets environment variables and runs an executable. It looks like this: export PATH=$PATH:/some/extra/binaries export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/some/extra/lib cd /...
Yair M's user avatar
2votes
0answers
74views

systemd keeps trying to open a /dev/mapper device; can I make it stop?

On my Fedora system with selinux's unconfined module disabled (so, basically selinux is in extra strict mode) I keep getting this: Feb 16 23:20:11 stodi.digitalkingdom.org systemd[2227]: Failed to ...
rlpowell's user avatar
0votes
0answers
32views

How to wait for child processes to finish and then restart the systemctl service to avoid downtime?

I have a situation where I want to migration from using system slice to ABC slice for a systemctl service. Now that service is running some child processes as well during communication from data plane ...
samay varshney's user avatar
0votes
3answers
165views

Is it possible to start a systemd service a fixed time after 'start' is requested?

Bit of a funny question: I have a systemd service where it is important that it actually executes (or fails) a fixed time after it is started. My understanding is that once Linux calls start on the ...
user12066's user avatar
0votes
1answer
275views

Set highest CPU and IO priority for a systemd service

How to set CPU and IO priority for a systemd service? In partucular, how to set the highest values? (Assume that the service is idling most of the time and will absolutely NOT clog the rest of the ...
VasyaNovikov's user avatar
0votes
0answers
63views

Declaring a bind mount in systemd-controlled initrd and persisting systemd attributes for the mount into the system

I know my title is a little bit convoluted so let me explain what I'm doing here in more detail. I am using a ephemeral root setup on my machine, essentially meaning that my / mount is a tmpfs and ...
Frontear's user avatar
0votes
3answers
67views

Terminal hangs while writing into a FIFO file [closed]

I have a program running under a systemd service and I'd like to pass some text/commands to it, so I tried doing so with a FIFO file: .service file [Unit] Description=A Minecraft server service! [...
slavekrouta's user avatar
0votes
0answers
15views

Start process after directory modified, but wait for idle

I'd like to start a process a few seconds after a directory has been modified, batching processing of multiple files. If I define a systemd path unit, my "service" is started immediately ...
Simon Richter's user avatar
0votes
1answer
73views

Broadcasting a message to users in desktop environments

I'm currently writing a small systemd service that may need to shutdown the computer. I'd like to broadcast a message to all users, e.g. This computer is going to shutdown at XXX, don't forget save ...
Yoric's user avatar
1vote
1answer
64views

Conditional Ctrl-Alt-Del shutdown

I always shutdown my Linuxes with Ctrl-Alt-Del from a virtual console (outside any window mangager - KDE). Now I want that the system still shutdowns with Ctrl-Alt-Del, but only if certain CONDITION ...
Luis A. Florit's user avatar

153050per page
close